#ifndef PAGE2_WIDGET_H
#define PAGE2_WIDGET_H



#include <QWidget>
#include <QDebug>
#include <QTimer>
#include <stdio.h>
#include <string.h>
//#include "user/welcomewidget.h"
#include "ui_welcomewidget.h"
#include "temp_humi.h"
#include "brightness.h"
#include "user/tuya_iot_kit.h"

class WelcomeWidget;

class Page2_Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Page2_Widget(WelcomeWidget *widget);
    ~Page2_Widget();



private slots:

public Q_SLOTS:
    void slot_update_value();


private:

    WelcomeWidget *welcomewidget;
    Ui::WelcomeWidget *welcome_ui;

    QTimer *update_timer;
    Temp_Humi *m_temp_sensor;
    Brightness *m_light_sensor;

    aht20_data_t temp_sensor_data;
    int brightness_value;
};



#endif

